home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 1460 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  738 b 

  1. Path: jupiter.planet.net!usenet
  2. From: Chris Kemp <chrisk@paladn.com>
  3. Newsgroups: comp.lang.c++
  4. Subject: How to initialize an array of structures?
  5. Date: 11 Jan 1996 04:34:21 GMT
  6. Organization: Paladin Consultants, Inc.
  7. Message-ID: <4d240e$nk5@jupiter.planet.net>
  8. NNTP-Posting-Host: denv30.planet.net
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 1.2N (Windows; I; 32bit)
  13.  
  14. Could someone explain how to do this properly:
  15.  
  16.         struct FUNCTIONMAP
  17.         {
  18.             char     *functionname;
  19.             int    functionnumber;
  20.             int    maxargs;
  21.             int    functarg[5];
  22.             
  23.         };
  24.         
  25.         static struct FUNCTIONMAP functionlist[300];    
  26.         functionlist[1]={"firstfunction",1,3,2,2,2,0,0}    <-- hangs on this line
  27.         
  28. TIA            
  29.  
  30.